package pers.zh.parking.utils;

import android.text.Editable;
import android.text.TextWatcher;
import android.widget.EditText;

public abstract class CommonTextWatcher implements TextWatcher {

    protected EditText mView;

    public CommonTextWatcher(EditText view) {
        this.mView = view;
    }

    @Override
    public void beforeTextChanged(CharSequence s, int start, int count, int after) {

    }

    @Override
    public void onTextChanged(CharSequence s, int start, int before, int count) {

    }

    @Override
    public void afterTextChanged(Editable s) {
        afterChanged(s.toString().trim());
    }

    public abstract void afterChanged(String s);

}
